package com.nashuju.web.controller.sys;

import org.durcframework.core.controller.CrudController;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.nashuju.web.entity.sys.SysOperate;
import com.nashuju.web.entity.sys.SysOperateSch;
import com.nashuju.web.service.sys.SysOperateService;

@Controller
public class SysOperateController extends CrudController<SysOperate, SysOperateService> {

    @RequestMapping("/addRSysOperate.do")
    public @ResponseBody Object addRSysOperate(SysOperate entity) {
        return this.save(entity);
    }

    @RequestMapping("/listRSysOperate.do")
    public @ResponseBody Object listRSysOperate(SysOperateSch searchEntity) {
        return this.query(searchEntity);
    }

    @RequestMapping("/updateRSysOperate.do")
    public @ResponseBody Object updateRSysOperate(SysOperate enity) {
        return this.update(enity);
    }

    @RequestMapping("/delRSysOperate.do")
    public @ResponseBody Object delRSysOperate(SysOperate enity) {
        return this.delete(enity);
    }
}
